//jwt方法封装;
import jwt from 'jsonwebtoken';

//导出;
export default function isverify(token, key) {
    return new Promise((res, rej) => {
        jwt.verify(token, key, (error, results) => {
            if (error) rej(error)
            res(results)
        })
    })
}